package com.qtest.qandroid.service;

import com.qtest.qandroid.entity.*;

import java.util.List;

/**
 * @author Yu
 * @time 2019/11/25 14:12
 */

public interface UserService {
    User quaryByName(String name);

    Boolean addUser(User user);

    Boolean addAttendance(AttendanceJob attendanceJob);

    AttendanceJob queryAttendance(String num);

    void stuAttednance(AttendanceRecord attendanceRecord);

    void updateStuAttendance(AttendanceRecord attendanceRecord,String attendanceId);

    AttendanceRecord queryByName(String record);

    Boolean login(String userId, String password,String userType);

    Result<List<User>> selectAllStudentBelowCourse(String name);

    Result<List<User>> allStudentBleowCourse(String courseId);

    Result<List<StudentRecord>> selectAllRecordFromOneCourse( String userId,String courseId);

    Result<List<AttendanceJob>> selectAllAttendanceJob(String courseId);

    Result<List<StudentStatus>> selectAllRecordFromCourse(String attendanceId);

    AttendanceJob newAttend(String courseId);

    Course courseMessage(Integer courseId);

    void stopAttendance(String courseId, Integer attendanceId);

    AttendanceRecord attendanceRecordIs(Integer attendanceId, String userId);
}
